import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
  {
    title: '租户ID',
    dataIndex: 'tentantId',
    width: 200,
  },
  {
    title: '服务名称',
    dataIndex: 'serviceId',
    width: 200,
  },
  {
    title: '模块描述',
    dataIndex: 'moduleDesc',
    width: 200,
  },
  {
    title: '保留数据0-否 1-是 不允许删除',
    dataIndex: 'isPersist',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '租户ID',
    field: 'tentantId',
    component: 'Input',
    required: true,
  },
  {
    label: '服务名称',
    field: 'serviceId',
    component: 'Input',
    required: true,
  },
  {
    label: '模块描述',
    field: 'moduleDesc',
    component: 'Input',
    required: true,
  },
  {
    label: '保留数据0-否 1-是 不允许删除',
    field: 'isPersist',
    component: 'Input',
    required: true,
  },
];
